package com.example.service;

import com.example.domain.Resource;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface ResourceService {
    Resource selectResourceById(String id);

    List<Resource> selectResourceByUid(String id);

    List<Resource> showAllResource();

    List<Resource> showDeleteResource();

    Integer hasId(String rid);

    Boolean updateUid(String rid,Integer uid);

    Boolean borrowUpdate(Resource resource)throws Exception;

    Boolean returnUpdate(Resource resource)throws Exception;

    Boolean insert(Resource resource)throws Exception;

    List<Resource> delete(int id)throws Exception;

    List<Resource> selectResourceByAll(String object)throws Exception;

    Integer selectUidById(String id) throws Exception;

    List<String> selectRidByUid(Integer id) throws Exception;
}
